// Copyright  2012 Petr TALLA. [petr.talla@gmail.com]
// This file is free software; you can redistribute it and/or modify it
// under the terms of the GNU Lesser General Public License
// as published by the Free Software Foundation; either
// version 2 of the License, or (at your option) any later version.
//
// This file is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY;  without even the implied warranty
// of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
// See the GNU Lesser General Public License for more details.
// [http://www.gnu.org/copyleft/lesser.html]
//=============================================================================

package tc.crase.sys;

import java.io.File;

import tc.crase.db.Xdb;
import tc.crase.db.Xobject;
import tc.crase.meta.Metadata;

public class XdbEx extends Xdb {
	public Metadata metadata = new Metadata();
				
	public XdbEx() {
	}
	
	@Override
	protected void onRemove(Xobject xobj) {
	}
	
	@Override
	public XobjectEx createObject(int id) {
		XobjectEx xobject = new XobjectEx("", "");
		initializeObject(xobject, id);
		return xobject;
	}
	
	/*String calculateFileName(String relativeFileName) {
		File file = new File(fileName);
		return file.getParent() + relativeFileName + ".crase";
	}
	
	String calculateRelativeFileName() {
		File file = new File(fileName);
		return file.getParent() + relativeFileName + ".crase";
	}*/
}
